package org.example.base.common.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.base.common.entity.UserEntity;
import org.example.core.dao.BaseDao;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 用户dao层
 */
@Repository
public interface UserDao extends BaseDao<String, UserEntity> {
    List<Map<String,Object>> getMenusByUserId(Object userId);

    void addRoles(@Param("roleIdList") List<String> roleIdList,@Param("userId") Object userId);
}
